<template>
  <el-dialog
    :title="title"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    @close="close"
    :visible.sync="visible"
    class="main_dialog dialog450"
  >
    <div class="box-padding">
      <el-progress
        :text-inside="true"
        :stroke-width="15"
        :percentage="percentage"
        status="success"
        color="#E47C02"
        style="width: 100%"
      ></el-progress>
      <slot></slot>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "MainPagination",
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: ""
    },
    percentage: {
      type: Number,
      default: 0
    },
    percentList: {
      type: Array,
      default: ()=> []
    }
  },
  data() {
    return {};
  },
  methods: {
    // 关闭
    close() {
      this.$emit("update:visible",false);
      this.$emit("close");
    }
  },
};
</script>
<style lang="scss" scoped>
@import "@/styles/variables.scss";
/deep/.el-dialog__body {
  padding: 0;
}
.box-padding {
  padding: 30px 20px;
}
</style>